import Layout from '@/layout'

/**
 * 平台管理员
 */
export default [
  {
    path: '/admin/follow',
    component: Layout,
    redirect: '/admin/follow/index',
    name: 'admin-follow',
    meta: { title: '推荐管理', icon: 'example', roles: ['平台'] },
    children: [
      {
        path: 'index',
        name: 'admin-follow-index',
        component: () => import('@/views/admin/follow/index'),
        meta: { title: '推荐管理', icon: 'eye' }
      },
      {
        path: ':academy_code/user',
        name: 'admin-follow-user',
        hidden: true,
        component: () => import('@/views/admin/follow/user'),
        meta: { title: '推荐用户', icon: 'eye', activeMenu: '/admin/follow/index' }
      }
    ]
  },
  {
    path: '/admin/answer',
    component: Layout,
    redirect: '/admin/answer/index',
    name: 'admin-answer',
    meta: { title: '答疑管理', icon: 'example', roles: ['平台'] },
    children: [
      {
        path: 'index',
        name: 'admin-answer-index',
        component: () => import('@/views/admin/answer/index'),
        meta: { title: '答疑管理', icon: 'link' }
      }
    ]
  }
]
